write the script of card btn cBtn & return & return to file theFile
end if
end if
end repeat
end if
end repeat
close file theFile
unlock screen
pop card
-- go stack MyId
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=181 top=81 right=96 bottom=322
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
-- part 9 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=47 top=153 right=168 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
-- part 10 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=47 top=173 right=188 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Fields
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is false then
set the hilite of cd button 5 to false
set the hilite of cd button 6 to false
end if
end mouseUp
-- part 11 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=63 top=193 right=208 bottom=204
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is true then set the hilite of cd btn 4 to true
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=63 top=213 right=228 bottom=204
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Contents if locked
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is true then set the hilite of cd btn 4 to true
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=47 top=233 right=248 bottom=188
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Buttons
----- HyperTalk script -----
on mouseUp
if the hilite of me is false then set the hilite of cd btn 8 to false
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=63 top=253 right=268 bottom=204
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
----- HyperTalk script -----
on mouseUp
if the hilite of me is true then set the hilite of cd btn 7 to true
end mouseUp
-- part 20 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=305 top=153 right=168 bottom=446
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
-- part 28 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=305 top=173 right=188 bottom=446
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Fields
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is false then
set the hilite of cd button 11 to false
set the hilite of cd button 12 to false
end if
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=321 top=193 right=208 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is true then set the hilite of cd btn 10 to true
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=321 top=213 right=228 bottom=462
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Contents if locked
----- HyperTalk script -----
on mouseUp
get the hilite of me
if it is true then set the hilite of cd btn 10 to true
end mouseUp
-- part 32 (button)
-- low flags: 00
-- high flags: E006
-- rect: left=305 top=233 right=248 bottom=446
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Buttons
----- HyperTalk script -----
on mouseUp
if the hilite of me is false then set the hilite of cd btn 14 to false
end mouseUp
-- part 33 (button)
-- low flags: 00
-- high flags: E005
-- rect: left=323 top=253 right=268 bottom=464
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Script
----- HyperTalk script -----
on mouseUp
if the hilite of me is true then set the hilite of cd btn 13 to true
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=276 top=313 right=335 bottom=375
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Select All
----- HyperTalk script -----
on mouseUp
repeat with n = 2 to 14
set the hilite of cd button n to true
end repeat
end mouseUp
-- part 35 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=237 top=305 right=339 bottom=274
-- title width / last selected line: 0
-- icon id / first selected line: 2507 / 2507
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field 1
end mouseUp
-- part 36 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=196 top=305 right=339 bottom=233
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
go home
end mouseUp
-- part 37 (field)
-- low flags: 81
-- high flags: 0007
-- rect: left=143 top=100 right=298 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 22
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseup
hide me
end mouseup
-- part contents for card part 37
----- text -----
To document a HyperCard stack simply select the options you wish to document.
You may choose to include the stack script, background script, background field information, with or without script or contents. You may also choose to include button information, with or without its script.
StakDoc works on locked and protected stacks.
The options available for background item documentation are duplicated for each foreground card. You may select any or all of the individual items for documentation.
When you have selected the options, click on the Document... button and select the stack you wish to document.
After directing StakDoc to the stack and naming the resulting text file there will be a slight delay, longer for large stacks, while StakDoc does its job of ripping apart the stack. When the job is complete you will return to the start of this stack to document another stack if you so wish.
The file produced by StakDoc is a standard text file. It may be opened in any word processor. To format the document correctly you will need to put a tab stop at about 5-6cm so that the columns line up correctly.
The output of StakDoc is very comprehensive and should provide more than enough documentation about a stack to reconstruct it, for example;
Bg fld # 1:
Bg fld Name: Any Field
Id: 3
Style: transparent
Rect: 0,70,364,342
Loc: 182,206
ShowLines: false
WideMargins:false
LockText: false
Visible: true
TextAlign: left
TextFont: Geneva
TextSize: 9
TextStyle: plain
TextHeight: 12
Script:
<Empty>
This application is distributed under the honour system, it is not public domain. You may freely use it and distribute it provided that you agree not to sell it for profit or use it to induce anyone to buy something.
Don't send me any money, bug reports, life stories or claims for compensation. I don't want them. If you like this product and use it then you might consider donating a few loose coins to the collection box of a worthy charity. Kids are usually a better investment than cats and dogs.